from django.db import models

from django.contrib.auth.models import AbstractUser

class User(AbstractUser):
    mobile = models.CharField(max_length=11,unique=True)
    icon = models.ImageField(upload_to='icon',default='icon/default')  # 需要装pillo模块
    class Meta:
        db_table = 'luffy_user'  # 修改表名
        verbose_name_plural = '用户表'
